#import <UIKit/UIKit.h>

#import "framework/FWDBAccess.h"

#import "PITask.h"


@class SBApplication;
@class FWApplication;


@interface PITaskIntegration : NSObject <FWDBAccessDelegate>

+ (NSArray*)basicTaskList:(FWApplication*)app prefs:(FWPreferences*)prefs key:(NSString*)key parentKey:(NSString*)parentKey;

+ (void)addChildDataToTaskList:(FWApplication*)app parents:(NSArray*)parents prefs:(FWPreferences*)prefs;

+ (PITask*)augmentedBasicTask:(PITask*)task application:(FWApplication*)app;

+ (NSArray*)arrayOfContexts:(FWApplication *)application earliest:(NSDate*)earliest;

+ (NSString*)newTaskURL:(NSString*)title importance:(enum PIImportanceType)importance application:(FWApplication*)app;

@end
